package com.atomic.param;

/**
 * @author dreamyao
 * @version 1.1.0 Created by dreamyao on 2017/5/29.
 */
public final class Constants {

    // 期望结果，为 Y 时才执行断言
    public static final String ASSERT_RESULT = "assertResult";
    // 测试用例标题
    public static final String CASE_NAME = "caseName";
    // 为 Y 时启动自动化测试
    public static final String AUTO_TEST = "autotest";
    // 当期望结果为 N 时才执行assertCode断言
    public static final String ASSERT_CODE = "assertCode";
    // 当期望结果为 N 时才执行assertDescription断言
    public static final String ASSERT_MSG = "assertMsg";
    // 预期结果字段，当预期结果内容不为空是进行自动断言
    public static final String EXPECTED_RESULT = "expectedResult";
    // 请求类型，如：GET,POST
    public static final String HTTP_MODE = "mode";
    // 请求IP+端口号或域名
    public static final String HTTP_HOST = "host";
    // 请求URI路径
    public static final String HTTP_METHOD = "method";
    // ContentType
    public static final String CONTENT_TYPE = "contentType";
    // POST JSON提交
    public static final String CONTENT_TYPE_JSON = "application/json";
    // POST表单提交
    public static final String CONTENT_TYPE_FROM = "application/x-www-form-urlencoded";
    // 请求头
    public static final String HTTP_HEADER = "header";
    // 快捷登陆地址
    public static final String LOGIN_URL = "loginUrl";
    // HTTP GET请求
    public static final String HTTP_GET = "GET";
    // HTTP POST请求
    public static final String HTTP_POST = "POST";
    // 单参数，比如Request<Integer>时，excel中的默认属性名称
    public static final String DEFAULT_SINGLE_PARAM_NAME = "data";
    // Http接口返回类型标识，默认返回String
    public static final String MESSAGE_TYPE = "messageType";
    // 接口返回值对象
    public static final String RESULT_NAME = "m_result";
    // 接口入参对象
    public static final String PARAMETER_NAME_ = "m_parameter_";
    // Yaml中true字段值
    public static final String YAML_TRUE = "true";
    // Yaml中false字段值
    public static final String YAML_FALSE = "false";
    // excel中Y字段值
    public static final String EXCEL_YES = "Y";
    // excel中N字段值
    public static final String EXCEL_NO = "N";
    // excel中null字段值
    public static final String EXCEL_NULL = "null";
    // excel中foreach字段值
    public static final String EXCEL_FOREACH = "foreach";
    // excel中random字段值
    public static final String EXCEL_RANDOM = "random";
    // 断言的时候，旧值是执行接口前的数据库值，需要先保存
    public static final String ASSERT_ITEM_ = "m_assertItem_";
    // 断言的时候，旧值是执行接口前的数据库值，需要先保存SQL，以供打印
    public static final String OLD_SQL_ = "m_old_sql_";
    // 测试用例的说明，比如参数type无效
    public static final String EXCEL_DESC = "caseName";
    // testmethodmeta对象
    public static final String TESTMETHODMETA = "testmethodmeta";
    // 测试用例的序号
    public static final String CASE_INDEX = "CASE_INDEX";
    // 如果有测试用例此标志设置为Y，则单独运行，其他没带此标志的测试用例跳过
    public static final String TEST_ONLY = "testOnly";
    // 如果有测试用例设置此值，则开启多线程同时调用此测试用例，测试并发
    public static final String THREAD_COUNT = "threadCount";
    // 自动化测试生成用例最大数量默认值
    public static final int MAX_TEST_CASES = 100000;
    // 对应测试用例依赖接口返回结果的序号
    public static final String DEPENDENCY_INDEX = "dependencyIndex";
    // 预期值sql语句
    public static final String ASSERT_SQL = "assertSql";
    // zookeeper URL地址
    public static final String ZOOKEEPER = "zookeeper";
    // excel中表示身份证号标示
    public static final String ID_CARD = "${card}";
    // excel中表示邮箱号标示
    public static final String EMAIL = "${email}";
    // excel中表示手机号标示
    public static final String PHONE_NO = "${phone}";
    // excel中表示当前时间标示
    public static final String NOW_DAY = "${now()}";
    // 日期时间格式
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    // HttpSession 接口对象
    public static final String HTTP_SESSION = "_session";
    // HttpServletRequest 接口对象
    public static final String HTTP_SERVLET_REQUEST = "_servlet_request";
    // HttpServletResponse 接口对象
    public static final String HTTP_SERVLET_RESPONSE = "_servlet_response";
}
